package com.frcdi.qms.common.utils.sql;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class CleanInputCatche extends Thread {
    private InputStream inputStream;

    public CleanInputCatche(InputStream inputStream) {
        this.inputStream = inputStream;
    }

    public void run() {
        try {
            BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, "gbk"));
            String line = null;
            while ((line = reader.readLine()) != null) {
                System.out.println(line);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
